/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const adminRouter = {
  path: '/systemset',
  component: Layout,
  redirect: 'noRedirect',
  name: 'SystemSet',
  meta: {
    title: '系统设置',
    icon: 'el-icon-setting',
    roles: ['ROLE_CompanySet_Show', 'ROLE_DepartmentSet_Show']
  },
  children: [
    {
      path: 'companyset',
      component: () => import('@/views/companyset'),
      name: 'CompanySet',
      meta: { title: '子公司设置', roles: ['ROLE_CompanySet_Show'], noCache: true }
    },
    {
      path: 'departmentset',
      component: () => import('@/views/departmentset'),
      name: 'DepartmentSet',
      meta: { title: '部门设置', roles: ['ROLE_DepartmentSet_Show'] }
    }
  ]
}

export default adminRouter
